<?php 
if ($id<>"") {
$SQL="SELECT valor FROM td_subsidiotasa WHERE id=$id AND idpreg=2975";
$valpreg=$forms2->Execute($SQL) or DIE ("Error: $SQL");
$val=$valpreg->Fields("valor");
}

if (!$nuevo and $origen<>"C") {?>
        <a href='../historial.php?idform=162&id=<?php echo $id ?>&idpreg=2975&idap=<?php echo $idap ?>'> 
	   	<img src='../ImagenCustom/historial.gif' border=0 alt='Historial' align='absmiddle'></a>&nbsp;<?php 
}?>
<table>
  <tr> 
    <?php 
if ($origen<>"C") {?>
    <td nowrap align=left valign=middle><font size=2> 
      <input type="text" DISABLED name='AUX2975' size=10 value="<?=$val?>" required>
	  <input type=hidden name='T2975' size=10 value="<?=$val?>">
      </font> </td><td id='_AUX2975'></td>
    <?php
}?>
  </tr>
</table>
